<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/9
 * Time: 15:35
 */
if (!defined('ACCESS')) {
    exit('Access denied.');
}

class Sn extends DBBase
{

    private static $table_name = 'auto_increment_sn';
    // 查询字段
    private static $columns = array('id', 'createtime');

    public static function getTableName()
    {
        return self::$table_name;
    }


    public static function lastedInsertId()
    {
        $data = array("createtime" => time());
        $db = self::__instance();
        $id = $db->insert(self::getTableName(), $data);
        return $id;
    }
}




